/**
 * @author shenxw
 * xspring-ibatiscom.sendinfo.xspring.ibatis.spring.mutildatesourceDynamicDataSource.java
 * 2011-2-15下午04:09:46
 */
package com.sendinfo.xspring.ibatis.spring.mutildatesource;

import org.apache.log4j.Logger;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDataSource extends AbstractRoutingDataSource {

	private static Logger log = Logger.getLogger("DynamicDataSource");
	
	/* (non-Javadoc)
	 * @see org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource#determineCurrentLookupKey()
	 */
	@Override
	protected Object determineCurrentLookupKey() {
		// TODO Auto-generated method stub
		return DbContextHolder.getDbType();
	}

}
